﻿namespace VIT.DataTransferObjects.Presentation
{
    using System;

    [Serializable]
    public class ProductInfoDto
    {
        public int Id { get; set; }
        public int CategoryId { get; set; }
        public string Title { get; set; }
        public string Color { get; set; }
        public string Style { get; set; }
        public decimal? Price { get; set; }
        public decimal? Sale { get; set; }
        public string Brief { get; set; }
        public string ImageThumbName { get; set; }
        public string ImageThumbPath { get; set; }
        public int VoteRate { get; set; }
        public int VoteNumber { get; set; }
        public int Vote
        {
            get
            {
                return this.VoteNumber == 0 ? 4 : this.VoteRate / this.VoteNumber;
            }
        }
        public int Likes { get; set; }
        public int UnLikes { get; set; }
    }
}
